const mongoose = require('mongoose')

// 编辑留言板集合规则
const categorySchema = new mongoose.Schema({
  name: {
    type: String
  },
  icon: {
    type: String
  }
})

// 创建评论集合规则
const Category = mongoose.model('Category', categorySchema)

// 将评论集合构造函数作为模块成员进行导出
module.exports = {
  Category
}